package com.tebiecloud.mpweixin.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户乖乖币记录表
 * @author tebie
 * @date 2019-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MpweixinMggFlow extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mpweixin_mgg_flow_id", type = IdType.ID_WORKER)
    private Long mpweixinMggFlowId;

    /**
     * 账号id
     */
    private Long userId;

    /**
     * 关联的订单id
     */
    private Long orderId;

    /**
     * 本次交易金额（单位：分）
     */
    private Integer transactionFunds;

    /**
     * 原有的资金数额
     */
    private Integer residueFunds;

    /**
     * 交易后的资金数额
     */
    private Integer futureFunds;

    /**
     * 交易类型：1、核销获得乖乖币，2、支付消费乖乖币，3、关闭订单退返，4订单退款退返
     */
    private Integer transactionType;

}
